package com.cdyx.outsideprescription.mapper;

import com.cdyx.outsideprescription.dto.RecipeInfoDto;
import com.cdyx.outsideprescription.entity.TbRecipeinfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiang dongqiong
 * @since 2021-12-19
 */
public interface TbRecipeinfoMapper extends BaseMapper<TbRecipeinfo> {

    int saveRecipeInfo(@Param("recipeNo") long recipeNo, @Param("visitNo") String visitNo,
                       @Param("recipeKinds") String recipeKinds, @Param("expiryDate") String expiryDate,
                       @Param("openDocAdvice") String openDocAdvice, @Param("year") int year);

    RecipeInfoDto selectRecipeInfo(@Param("recipeNo") String recipeNo);
    List<RecipeInfoDto> selectRecipeIList(String visitNo);

    void updateStatus(@Param("visitNo") String visitNo, @Param("recipeNo") String recipeNo,
                      @Param("statusValue") int statusValue);

    void Status(String recipeNo, int i);
}
